#Ashish Tomar
#NS Assign 1
#
CXX = g++

CFLAGS= -o

build : chatserver chatclient

chatserver : chatServer.o md5.o md5wrapper.o
	${CXX} -o chatserver chatServer.o md5.o md5wrapper.o -lpthread -lssl -lcrypto


chatclient : chatClient.o md5.o md5wrapper.o
	${CXX} -o chatclient chatClient.o md5.o md5wrapper.o -lssl -lcrypto


chatServer.o : chatServer.cpp
	${CXX} -c -o chatServer.o chatServer.cpp
	
chatClient.o : chatClient.cpp
	${CXX} -c -o chatClient.o chatClient.cpp

md5.o: md5.cpp
	${CXX} -c -o md5.o md5.cpp 

md5wrapper.o: md5wrapper.cpp
	${CXX} -c -o md5wrapper.o md5wrapper.cpp
clean:
	rm -rf *~ *.o \#* chatserver chatclient